import 'package:flutter/material.dart';
import 'package:video_game_series_app/styleguide/text_styles.dart';

class TabText extends StatelessWidget {
  final String text;
  final bool isSelected;

  TabText({this.text,this.isSelected});

  @override
  Widget build(BuildContext context) {
    return Transform.rotate(
      angle: 1.56,
      child: Text(
        text,
        style: isSelected?selectedTabStyle:defaultTabStyle,
      ),
    );
  }
}
